package com.per.mybootall.pojo;

import io.swagger.models.auth.In;

import java.util.Date;

public class Answer {
    /*回答的唯一id*/
    private Integer answerid;
    /*回答者的名字*/
    private String username;
    private Long userid;
    /*回答内容*/
    private String content;
    /*创建时间*/
    private Date creattime;
    /*是否本人*/
    private boolean flag;

    public Answer() {
    }

    @Override
    public String toString() {
        return "Answer{" +
                "answerid=" + answerid +
                ", username='" + username + '\'' +
                ", userid=" + userid +
                ", content='" + content + '\'' +
                ", creattime=" + creattime +
                ", flag=" + flag +
                '}';
    }

    public Answer(Integer answerid, String username, Long userid, String content, Date creattime, boolean flag) {
        this.answerid = answerid;
        this.username = username;
        this.userid = userid;
        this.content = content;
        this.creattime = creattime;
        this.flag = flag;
    }

    public Integer getAnswerid() {
        return answerid;
    }

    public void setAnswerid(Integer answerid) {
        this.answerid = answerid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Long getUserid() {
        return userid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreattime() {
        return creattime;
    }

    public void setCreattime(Date creattime) {
        this.creattime = creattime;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }
}
